/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.oa.action.autooffice;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import java.util.Date;
import cn.javaxc.oa.mapper.autooffice.CommonDeskMapper;
public class CommonDesk extends BaseAction
{
    @Autowired(required=false)
	private CommonDeskMapper mapper;
    /**
    我的桌面
    */
    
    public Map commonDesk() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_index=mapper.s_index(params);
        result.put("s_index", s_index);
        
        
        SQLList<SQLMap> s_chart3=mapper.s_chart3(params);
        result.put("s_chart3", s_chart3);
        
        
        SQLList<SQLMap> s_count=mapper.s_count(params);
        SQLMap s_count_emt=s_count.getExistfirst();
        result.put("s_count", s_count_emt);
        
        
        String web=context.getConfig().get("framework_file");
        if (web!=null){
            File webFile=new File(request.getRealPath(web));
            if (webFile.exists()){
                context.setAttribute("framework_time",new Date(webFile.lastModified()).toLocaleString());
            }
        }
        
        return result;
    }
}